package com.lse_api.service.impl;

import com.lse_api.entity.ProjectApi;
import com.lse_api.mapper.ProjectApiMapper;
import com.lse_api.service.ProjectApiService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目内部API接口 服务实现类
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Service
public class ProjectApiServiceImpl extends ServiceImpl<ProjectApiMapper, ProjectApi> implements ProjectApiService {

    @Resource
    private ProjectApiMapper mapper;

    @Override
    public List<ProjectApi> getApiListByProject(String projectId) {
        return mapper.getApiListByProject(projectId);
    }

    @Override
    public List<ProjectApi> getApiListByProjectBySelect(String projectId, List<String> ids) {
        return mapper.getApiListByProjectBySelect(projectId, ids);
    }

    @Override
    public List<ProjectApi> filterApi(Map<String, Object> map) {
        return mapper.filterApi(map);
    }
}
